import { createWebHistory, createRouter } from "vue-router";
import Index from '/src/pages/Index.vue'
import Login from '/src/pages/Login.vue'
import Register from '/src/pages/Register.vue'
import Demo from '/src/pages/Demo.vue'
import My from '/src/components/My.vue'
import Teacher from '/src/components/Teacher.vue'
import Student from '/src/components/student.vue'
const routes = [
    {
        path: "/",
        component: Login,
        name:'login'
    },
    {
        path: "/index",
        component: Index,
        name:'index'
    },
    {
        path:'/register',
        component:Register,
        name:'register'
    },
    {
        path:'/demo',
        component:Demo,
        name:'demo'
    },
    {
        path:'/my',
        component:My,
        name:'my'
    },
    {
        path:'/teacher',
        component:Teacher,
        name:'teacher'
    },
    {
        path:'/student',
        component:Student,
        name:'student'
    }
];

const router = createRouter({
    history: createWebHistory(),
    routes,
});

export default router;